package com.ruoyi.waterDistribution.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 灌溉制度页面所需动态对象
 *
 * @author ps
 * @date 2023-02-23
 */
@Data
public class WiPeriodYDynamicItem {

    private static final long serialVersionUID = 1L;

    /** 种植年度 */
    private String cropYr;

    /** 种植代码 */
    private String plantCd;

    /** 灌水开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;

    /** 灌水结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

    /** 灌水天数 */
    private Long days;

    /** 灌水定额 */
    private BigDecimal periodVol;

    @Override
    public String toString() {
        return "WiPeriodYDynamicItem{" +
                "cropYr='" + cropYr + '\'' +
                ", plantCd='" + plantCd + '\'' +
                ", beginDate=" + beginDate +
                ", endDate=" + endDate +
                ", days=" + days +
                ", periodVol=" + periodVol +
                '}';
    }



}
